---
layout: "default"
title: "sizeofValue"
description: "Swift documentation for 'sizeofValue': Returns the contiguous memory footprint of  T."
keywords: "sizeofValue,func,swift,documentation"
root: "/v3.0"
---

<div class="declaration" id="func-sizeofvalue-t_-t">
<a class="toggle-link" data-toggle="collapse" href="#comment-func-sizeofvalue-t_-t">func sizeofValue&lt;T&gt;(<wbr>_: T)</a>
        
<div class="comment collapse" id="comment-func-sizeofvalue-t_-t"><div class="p">
    <p>Returns the contiguous memory footprint of  <code>T</code>.</p>

<p>Does not include any dynamically-allocated or &quot;remote&quot; storage.
In particular, <code>sizeof(a)</code>, when <code>a</code> is a class instance, is the
same regardless of how many stored properties <code>a</code> has.</p>

    <h4>Declaration</h4>    
    <code class="language-swift">func sizeofValue&lt;T&gt;(_: T) -&gt; Int</code>
    
    
</div></div>
</div>
